//These functions order the arrays a (weight) and c (profit) in non-decresing order for vector a 

void swap(int* a_i, int* a_j);
void quickSort(int* a, int* c, int dim);
void quickSortR(int* a, int* c, int begin, int end);